package com.hundredapp.oa.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * OaSecuit entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "oa_secuit", catalog = "oa_demo")
public class OaSecuit implements java.io.Serializable {

	// Fields

	private Integer id;
	private String displayName;
	private String phont;
	private String EMail;
	private Integer age;
	private Timestamp visitTime;
	private Integer createUserId;
	private Timestamp createTime;
	private String school;
	private List<OaReserve> oaReserves = new ArrayList<OaReserve>(0);

	// Constructors

	/** default constructor */
	public OaSecuit() {
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "display_name", length = 45)
	public String getDisplayName() {
		return this.displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	@Column(name = "phont", length = 45)
	public String getPhont() {
		return this.phont;
	}

	public void setPhont(String phont) {
		this.phont = phont;
	}

	@Column(name = "e_mail", length = 45)
	public String getEMail() {
		return this.EMail;
	}

	public void setEMail(String EMail) {
		this.EMail = EMail;
	}

	@Column(name = "age")
	public Integer getAge() {
		return this.age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Column(name = "visit_time", length = 19)
	public Timestamp getVisitTime() {
		return this.visitTime;
	}

	public void setVisitTime(Timestamp visitTime) {
		this.visitTime = visitTime;
	}

	@Column(name = "create_user_id")
	public Integer getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "school", length = 45)
	public String getSchool() {
		return this.school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	@OneToMany(cascade = {CascadeType.REFRESH,CascadeType.MERGE,CascadeType.PERSIST}, fetch = FetchType.LAZY, mappedBy = "oaSecuit")
	public List<OaReserve> getOaReserves() {
		return this.oaReserves;
	}

	public void setOaReserves(List<OaReserve> oaReserves) {
		this.oaReserves = oaReserves;
	}

}